<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hammerspoon docs: EvernoteOpenAndTag</title>
    <style type="text/css">
      a { text-decoration: none; }
      a:hover { text-decoration: underline; }
      th { background-color: #DDDDDD; vertical-align: top; padding: 3px; }
      td { width: 100%; background-color: #EEEEEE; vertical-align: top; padding: 3px; }
      table { width: 100% ; border: 1px solid #0; text-align: left; }
      section > table table td { width: 0; }
    </style>
    <link rel="stylesheet" href="docs.css" type="text/css" media="screen" />
  </head>
  <body>
    <header>
      <h1><a href="./index.html">docs</a> &raquo; EvernoteOpenAndTag</h1>
      <p>Add some missing hotkeys for opening a note in Evernote, and for common tag sets</p>
<p>Download: <a href="https://github.com/Hammerspoon/Spoons/raw/master/Spoons/EvernoteOpenAndTag.spoon.zip">https://github.com/Hammerspoon/Spoons/raw/master/Spoons/EvernoteOpenAndTag.spoon.zip</a></p>

      </header>
      <h3>API Overview</h3>
      <ul>
        <li>Variables - Configurable values</li>
          <ul>
            <li><a href="#logger">logger</a></li>
          </ul>
        <li>Methods - API calls which can only be made on an object returned by a constructor</li>
          <ul>
            <li><a href="#bindHotkeys">bindHotkeys</a></li>
            <li><a href="#evernoteIsFrontmost">evernoteIsFrontmost</a></li>
            <li><a href="#inlineTagCurrentNote">inlineTagCurrentNote</a></li>
            <li><a href="#openAndTagCurrentNote">openAndTagCurrentNote</a></li>
            <li><a href="#openCurrentNoteInWindow">openCurrentNoteInWindow</a></li>
            <li><a href="#tagCurrentNote">tagCurrentNote</a></li>
          </ul>
      </ul>
      <h3>API Documentation</h3>
        <h4 class="documentation-section">Variables</h4>
          <section id="logger">
            <a name="//apple_ref/cpp/Variable/logger" class="dashAnchor"></a>
            <h5><a href="#logger">logger</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag.logger</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Variable</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.</p>
</td>
              </tr>
            </table>
          </section>
        <h4 class="documentation-section">Methods</h4>
          <section id="bindHotkeys">
            <a name="//apple_ref/cpp/Method/bindHotkeys" class="dashAnchor"></a>
            <h5><a href="#bindHotkeys">bindHotkeys</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag:bindHotkeys(mapping)</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Binds hotkeys for EvernoteOpenAndTag</p>
<p>Parameters:</p>
<ul>
<li>mapping - A table containing hotkey objifier/key details for the following items:<ul>
<li><code>open_note</code> - open the current note in a new window</li>
<li><code>open_and_tag-&lt;tag1&gt;,&lt;tag2&gt;...</code> - open the current note and apply all the comma-separated tags given. The tags must already exist in Evernote for the tagging to succeed.</li>
<li><code>tag-&lt;tag1&gt;,&lt;tag2&gt;...</code> - open the current note and apply all the comma-separated tags given. The tags must already exist in Evernote for the tagging to succeed.</li>
</ul>
</li>
</ul>
</td>
              </tr>
            </table>
          </section>
          <section id="evernoteIsFrontmost">
            <a name="//apple_ref/cpp/Method/evernoteIsFrontmost" class="dashAnchor"></a>
            <h5><a href="#evernoteIsFrontmost">evernoteIsFrontmost</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag:evernoteIsFrontmost()</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Returns <code>true</code> if Evernote is the frontmost application</p>
<p>Parameters:</p>
<ul>
<li>None</li>
</ul>
<p>Returns:</p>
<ul>
<li><code>true</code> if Evernote is the frontmost application, <code>false</code> otherwise</li>
</ul>
</td>
              </tr>
            </table>
          </section>
          <section id="inlineTagCurrentNote">
            <a name="//apple_ref/cpp/Method/inlineTagCurrentNote" class="dashAnchor"></a>
            <h5><a href="#inlineTagCurrentNote">inlineTagCurrentNote</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag:inlineTagCurrentNote(tags)</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Apply the given tags to the selected Evernote notes</p>
<p>Parameters:</p>
<ul>
<li>tags - a table containing a list of tags to apply. The tags must already exist in Evernote.</li>
</ul>
<p>Returns:</p>
<ul>
<li>None</li>
</ul>
<p>Notes:</p>
<ul>
<li>If multiple notes are selected, the tags are applied to all of them</li>
</ul>
</td>
              </tr>
            </table>
          </section>
          <section id="openAndTagCurrentNote">
            <a name="//apple_ref/cpp/Method/openAndTagCurrentNote" class="dashAnchor"></a>
            <h5><a href="#openAndTagCurrentNote">openAndTagCurrentNote</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag:openAndTagCurrentNote(tags)</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Open the current Evernote note in a new window and apply the given tags to it</p>
<p>Parameters:</p>
<ul>
<li>tags - a table containing a list of tags to apply. The tags must already exist in Evernote.</li>
</ul>
<p>Returns:</p>
<ul>
<li>None</li>
</ul>
<p>Notes:</p>
<ul>
<li>Even if multiple notes are selected, only the first one is tagged, as it will become the "current one" after it's opened in a new window</li>
</ul>
</td>
              </tr>
            </table>
          </section>
          <section id="openCurrentNoteInWindow">
            <a name="//apple_ref/cpp/Method/openCurrentNoteInWindow" class="dashAnchor"></a>
            <h5><a href="#openCurrentNoteInWindow">openCurrentNoteInWindow</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag:openCurrentNoteInWindow()</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Open the currently-selected Evernote notes in new windows.
Uses Applescript from <a href="https://discussion.evernote.com/topic/85685-feature-request-open-note-in-separate-window-keyboard-shortcut/#comment-366797">https://discussion.evernote.com/topic/85685-feature-request-open-note-in-separate-window-keyboard-shortcut/#comment-366797</a></p>
<p>Parameters:</p>
<ul>
<li>None</li>
</ul>
<p>Returns:</p>
<ul>
<li>None</li>
</ul>
</td>
              </tr>
            </table>
          </section>
          <section id="tagCurrentNote">
            <a name="//apple_ref/cpp/Method/tagCurrentNote" class="dashAnchor"></a>
            <h5><a href="#tagCurrentNote">tagCurrentNote</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>EvernoteOpenAndTag:tagCurrentNote(tags)</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Assigns tags to the currently-selected Evernote notes</p>
<p>Parameters:</p>
<ul>
<li>tags - a table containing a list of tags to apply. The tags must already exist in Evernote.</li>
</ul>
<p>Returns:</p>
<ul>
<li>None</li>
</ul>
</td>
              </tr>
            </table>
          </section>
  </body>
</html>